package com.changan.config;

import com.typesafe.config.Config;
import com.typesafe.config.ConfigFactory;

/**
 * @Author: wmh
 * Create Time: 2021/6/3 20:36
 */
public class EnvConfig {



    public final static Config CONFIG = ConfigFactory.parseResources("application.conf");

    //public final static String MYSQL_USER = CONFIG.getString("mysql.jdbc.user");
    //public final static String MYSQL_HOST = CONFIG.getString("mysql.jdbc.host");
    //public final static String MYSQL_DATABASE = CONFIG.getString("mysql.jdbc.database");
    //public final static Integer MYSQL_PORT = Integer.parseInt(CONFIG.getString("mysql.jdbc.port"));
    //public final static String MYSQL_PASSWORD = CONFIG.getString("mysql.jdbc.password");
    //public final static String MYSQL_URL = CONFIG.getString("mysql.jdbc.url");
    //public final static String MYSQL_METADATA_URL = CONFIG.getString("mysql.metadata.jdbc.url");

    //public final static String TABLE_PREFIX = CONFIG.getString("env.kudu.table.prefix");
    //public final static String TABLE_DELIMITER = CONFIG.getString("env.kudu.table.delimiter");
    //public final static String TABLE_SUFFIX = CONFIG.getString("env.kudu.table.suffix");
    //public final static String TOPIC_PREFIX = CONFIG.getString("env.topic.prefix");
    //public final static String TOPIC_DELIMITER = CONFIG.getString("env.topic.delimiter");
    //public final static String TOPIC_SUFFIX = CONFIG.getString("env.topic.suffix");

    public final static String BOOTSTRAP_SERVER = CONFIG.getString("kafka.properties.bootstrap.servers");
    public final static String DATABASE_NAME = "databaseName";
    public final static String DATABASE_ID = "databaseId";
    public final static String DATABASE_VERSION = "databaseVersion";
    public final static String TABLE_NAME = "tableName";
    public final static String TYPE = "type";
    public final static String DDL_VERSION = "ddlVersion";
    public final static String START_TIME = "startTime";
    //public final static String SCHEMA_CHANGE_LOGICAL_NAME = CONFIG.getString("env.schema.changes.table.logical.name");


}
